using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dominio;
using DAP;
using Seguridad;

public partial class TersterRegistrationPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void submitButton_Click(object sender, EventArgs e)
    {
       Cryphography cryp = new Cryphography();
       Tester tester = new Tester(nametxt.Text, lastNametxt.Text, emailtxt.Text, addresstxt.Text, countrytxt.Text, citytxt.Text, cryp.encript(passwordtxt.Text), 22, "active");
       tester.LastLogOn = new DateTime();
       Role tRole = new Role("Tester");
       tester.Role = tRole;
       TesterRepository rep = new TesterRepository();
       rep.save(tester);
        
    }
}
